<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxCollection/QxCollection.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_qx_collection_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">QxCollection.h</div>  </div>
</div>
<div class="contents">
<a href="_qx_collection_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _QX_COLLECTION_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _QX_COLLECTION_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(push)</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(disable:4996)</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(disable:4503)</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#endif // _MSC_VER</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;boost/multi_index_container.hpp&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#include &lt;boost/multi_index/member.hpp&gt;</span>
<a name="l00054"></a>00054 <span class="preprocessor">#include &lt;boost/multi_index/random_access_index.hpp&gt;</span>
<a name="l00055"></a>00055 <span class="preprocessor">#include &lt;boost/multi_index/hashed_index.hpp&gt;</span>
<a name="l00056"></a>00056 <span class="preprocessor">#include &lt;boost/type_traits/is_pointer.hpp&gt;</span>
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="preprocessor">#include &lt;QtCore/qpair.h&gt;</span>
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="preprocessor">#include &lt;<a class="code" href="_ix_collection_8h.html" title="Common interface for all QxOrm containers qx::QxCollection&lt;Key, Value&gt;">QxCollection/IxCollection.h</a>&gt;</span>
<a name="l00061"></a>00061 <span class="preprocessor">#include &lt;<a class="code" href="_qx_foreach_8h.html" title="foreach-style (based on BOOST_FOREACH macro) to iterate over all stl, boost and Qt containers + qx::Q...">QxCollection/QxForeach.h</a>&gt;</span>
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="preprocessor">#include &lt;<a class="code" href="_qx_hash_value_8h.html" title="Specialize hash_value function for some Qt and boost types (used for example by qx::QxCollection&lt;Key...">QxCommon/QxHashValue.h</a>&gt;</span>
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="preprocessor">#include &lt;<a class="code" href="get__class__name_8h.html" title="qx::trait::get_class_name&lt;T&gt;::get() : return class name of type T under const char * format...">QxTraits/get_class_name.h</a>&gt;</span>
<a name="l00066"></a>00066 <span class="preprocessor">#include &lt;<a class="code" href="is__smart__ptr_8h.html" title="qx::trait::is_smart_ptr&lt;T&gt;::value : return true if T is a smart-pointer of boost, Qt or QxOrm librari...">QxTraits/is_smart_ptr.h</a>&gt;</span>
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 <span class="keyword">namespace </span>qx {
<a name="l00069"></a>00069 
<a name="l00152"></a>00152 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00153"></a><a class="code" href="classqx_1_1_qx_collection.html">00153</a> <span class="keyword">class </span><a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection</a> : <span class="keyword">public</span> <a class="code" href="classqx_1_1_ix_collection.html" title="qx::IxCollection : common interface for all QxOrm containers qx::QxCollection&lt;Key, Value&gt;">IxCollection</a>
<a name="l00154"></a>00154 {
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <span class="keyword">public</span>:
<a name="l00157"></a>00157 
<a name="l00158"></a><a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">00158</a>    <span class="keyword">typedef</span> QPair&lt;Key, Value&gt; <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a>;
<a name="l00159"></a>00159 
<a name="l00160"></a>00160 <span class="keyword">protected</span>:
<a name="l00161"></a>00161 
<a name="l00162"></a><a class="code" href="classqx_1_1_qx_collection.html#ac7064ff450fd0f575a10eaaa8d81797a">00162</a>    <span class="keyword">typedef</span> boost::multi_index::member&lt;type_pair_key_value, Key, &amp; type_pair_key_value::first&gt; <a class="code" href="classqx_1_1_qx_collection.html#ac7064ff450fd0f575a10eaaa8d81797a">type_member</a>;
<a name="l00163"></a><a class="code" href="classqx_1_1_qx_collection.html#a77954f782f2a820597ae56bd8e7f5a52">00163</a>    <span class="keyword">typedef</span> boost::multi_index::random_access&lt;&gt; <a class="code" href="classqx_1_1_qx_collection.html#a77954f782f2a820597ae56bd8e7f5a52">type_first_index</a>;
<a name="l00164"></a><a class="code" href="classqx_1_1_qx_collection.html#ac2ea5c9f54a13a31fe5db17de1b9f327">00164</a>    <span class="keyword">typedef</span> boost::multi_index::hashed_unique&lt;type_member&gt; <a class="code" href="classqx_1_1_qx_collection.html#ac2ea5c9f54a13a31fe5db17de1b9f327">type_second_index</a>;
<a name="l00165"></a><a class="code" href="classqx_1_1_qx_collection.html#a03966401f6233e61bfc35fb7d5cc68fb">00165</a>    <span class="keyword">typedef</span> boost::multi_index::indexed_by&lt;type_first_index, type_second_index&gt; <a class="code" href="classqx_1_1_qx_collection.html#a03966401f6233e61bfc35fb7d5cc68fb">type_indexed_by</a>;
<a name="l00166"></a><a class="code" href="classqx_1_1_qx_collection.html#a2053337d8797601340e3b2667c643a51">00166</a>    <span class="keyword">typedef</span> boost::multi_index::multi_index_container&lt;type_pair_key_value, type_indexed_by&gt; <a class="code" href="classqx_1_1_qx_collection.html#a2053337d8797601340e3b2667c643a51">type_container</a>;
<a name="l00167"></a>00167 
<a name="l00168"></a><a class="code" href="classqx_1_1_qx_collection.html#a0cb81cc715a51121b33b5abe09f09092">00168</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> type_container::template nth_index&lt;0&gt;::type <a class="code" href="classqx_1_1_qx_collection.html#a0cb81cc715a51121b33b5abe09f09092">type_index_rand</a>;
<a name="l00169"></a><a class="code" href="classqx_1_1_qx_collection.html#ad5ac81bf04c358f2b2551ab5e873b13f">00169</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> type_container::template nth_index&lt;1&gt;::type <a class="code" href="classqx_1_1_qx_collection.html#ad5ac81bf04c358f2b2551ab5e873b13f">type_index_hash</a>;
<a name="l00170"></a>00170 
<a name="l00171"></a>00171 <span class="keyword">public</span>:
<a name="l00172"></a>00172 
<a name="l00173"></a><a class="code" href="classqx_1_1_qx_collection.html#a5b7b37e15959ea92f5ee63fbc37c2cec">00173</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> type_index_rand::iterator <a class="code" href="classqx_1_1_qx_collection.html#a5b7b37e15959ea92f5ee63fbc37c2cec">iterator</a>;
<a name="l00174"></a><a class="code" href="classqx_1_1_qx_collection.html#a0fb6b1200751318557d88e6747b4444a">00174</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> type_index_rand::const_iterator <a class="code" href="classqx_1_1_qx_collection.html#a0fb6b1200751318557d88e6747b4444a">const_iterator</a>;
<a name="l00175"></a><a class="code" href="classqx_1_1_qx_collection.html#ab0c08d2e209fbf646b900c9b760814f2">00175</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> type_index_rand::reverse_iterator <a class="code" href="classqx_1_1_qx_collection.html#ab0c08d2e209fbf646b900c9b760814f2">reverse_iterator</a>;
<a name="l00176"></a><a class="code" href="classqx_1_1_qx_collection.html#aa7fac6ef55247031cd19da8ad7ccb4b4">00176</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> type_index_rand::const_reverse_iterator <a class="code" href="classqx_1_1_qx_collection.html#aa7fac6ef55247031cd19da8ad7ccb4b4">const_reverse_iterator</a>;
<a name="l00177"></a>00177 
<a name="l00178"></a><a class="code" href="classqx_1_1_qx_collection.html#ae572d88061fa3737a49e93541ed25ed0">00178</a>    <span class="keyword">typedef</span> <span class="keyword">const</span> Key &amp; <a class="code" href="classqx_1_1_qx_collection.html#ae572d88061fa3737a49e93541ed25ed0">const_reference_key</a>;
<a name="l00179"></a><a class="code" href="classqx_1_1_qx_collection.html#ac29950bc2d7f35974f1eca6fd5a0ef2c">00179</a>    <span class="keyword">typedef</span> <span class="keyword">const</span> Value &amp; <a class="code" href="classqx_1_1_qx_collection.html#ac29950bc2d7f35974f1eca6fd5a0ef2c">const_reference_value</a>;
<a name="l00180"></a>00180 
<a name="l00181"></a>00181 <span class="keyword">protected</span>:
<a name="l00182"></a>00182 
<a name="l00183"></a><a class="code" href="classqx_1_1_qx_collection.html#a2fd856518b2796359cd9b9135be9f32c">00183</a>    <a class="code" href="classqx_1_1_qx_collection.html#a2053337d8797601340e3b2667c643a51">type_container</a> <a class="code" href="classqx_1_1_qx_collection.html#a2fd856518b2796359cd9b9135be9f32c" title="Collection with random access (like std::vector) and fast lookup by key (like boost::unordered_map)">m_qxCollection</a>;   
<a name="l00184"></a>00184 
<a name="l00185"></a>00185 <span class="keyword">public</span>:
<a name="l00186"></a>00186 
<a name="l00187"></a>00187    <a class="code" href="classqx_1_1_qx_collection.html#a2e60ad5cee08517a8ee22b1356eaa2a7" title="Construct an empty list.">QxCollection</a>();                                          
<a name="l00188"></a>00188    <a class="code" href="classqx_1_1_qx_collection.html#a2e60ad5cee08517a8ee22b1356eaa2a7" title="Construct an empty list.">QxCollection</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> &amp; other);    
<a name="l00189"></a>00189    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_collection.html#a5bad9c357a1e9aad50b202dc69ca8d03" title="Destroy the list.">~QxCollection</a>();                                 
<a name="l00190"></a>00190 
<a name="l00191"></a>00191    <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> &amp; <a class="code" href="classqx_1_1_qx_collection.html#ab295cf7958a205a19b4bcbb6c72de822" title="Assign &#39;other&#39; to this list and return a reference to this list.">operator= </a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> &amp; other);   
<a name="l00192"></a>00192    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a2529e650813e0d172c3f5cc11c0b36a2" title="Return &#39;true&#39; if &#39;other&#39; is equal to this list, otherwise return &#39;false&#39; (same values in the same ord...">operator== </a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> &amp; other) <span class="keyword">const</span>;                  
<a name="l00193"></a>00193    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a6ac47c53d09c6263acfffdfe1927b889" title="Return &#39;true&#39; if &#39;other&#39; is not equal to this list, otherwise return &#39;false&#39;.">operator!= </a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> &amp; other) <span class="keyword">const</span>;                  
<a name="l00194"></a>00194 
<a name="l00195"></a>00195    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#a5b7b37e15959ea92f5ee63fbc37c2cec">iterator</a> <a class="code" href="classqx_1_1_qx_collection.html#a85be86f1e03076a396283ec590c4de6f" title="Return an STL-style iterator pointing to the first item in the list.">begin</a>();                  
<a name="l00196"></a>00196    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#a5b7b37e15959ea92f5ee63fbc37c2cec">iterator</a> <a class="code" href="classqx_1_1_qx_collection.html#af0f9ad86d2994c53166a19d5e6371a2f" title="Return an STL-style iterator pointing to the imaginary item after the last item in the list...">end</a>();                    
<a name="l00197"></a>00197    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#a0fb6b1200751318557d88e6747b4444a">const_iterator</a> <a class="code" href="classqx_1_1_qx_collection.html#a85be86f1e03076a396283ec590c4de6f" title="Return an STL-style iterator pointing to the first item in the list.">begin</a>() <span class="keyword">const</span>;      
<a name="l00198"></a>00198    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#a0fb6b1200751318557d88e6747b4444a">const_iterator</a> <a class="code" href="classqx_1_1_qx_collection.html#af0f9ad86d2994c53166a19d5e6371a2f" title="Return an STL-style iterator pointing to the imaginary item after the last item in the list...">end</a>() <span class="keyword">const</span>;        
<a name="l00199"></a>00199 
<a name="l00200"></a>00200    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#ab0c08d2e209fbf646b900c9b760814f2">reverse_iterator</a> <a class="code" href="classqx_1_1_qx_collection.html#a0359ef96d5e3dc3f9311bcd212b1d3a3" title="Return a reverse STL-style iterator pointing to the first item in the list.">rbegin</a>();               
<a name="l00201"></a>00201    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#ab0c08d2e209fbf646b900c9b760814f2">reverse_iterator</a> <a class="code" href="classqx_1_1_qx_collection.html#a205eed8fadd9331fa438b9da7300822f" title="Return a reverse STL-style iterator pointing to the imaginary item after the last item in the list...">rend</a>();                 
<a name="l00202"></a>00202    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#aa7fac6ef55247031cd19da8ad7ccb4b4">const_reverse_iterator</a> <a class="code" href="classqx_1_1_qx_collection.html#a0359ef96d5e3dc3f9311bcd212b1d3a3" title="Return a reverse STL-style iterator pointing to the first item in the list.">rbegin</a>() <span class="keyword">const</span>;   
<a name="l00203"></a>00203    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#aa7fac6ef55247031cd19da8ad7ccb4b4">const_reverse_iterator</a> <a class="code" href="classqx_1_1_qx_collection.html#a205eed8fadd9331fa438b9da7300822f" title="Return a reverse STL-style iterator pointing to the imaginary item after the last item in the list...">rend</a>() <span class="keyword">const</span>;     
<a name="l00204"></a>00204 
<a name="l00205"></a>00205    <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_collection.html#aabedd22d38cb4497ea5f4664286dec05" title="Return size of allocated storage capacity.">capacity</a>() <span class="keyword">const</span>;                   
<a name="l00206"></a>00206    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_collection.html#a47133ed5f3d4902f017399bdf5e0e12d" title="Request that the capacity of the allocated storage space for the items of the container be at least e...">reserve</a>(<span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_collection.html#a7977eb06f18f7055433365cbb2fbf5fa" title="Return the number of items in the list (same as &#39;count()&#39;)">size</a>);                 
<a name="l00207"></a>00207    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_collection.html#a8fe20737d457cd97aee12db0185e5d85" title="Reverse all items in the list.">reverse</a>();                          
<a name="l00208"></a>00208    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_collection.html#ab258660dfa4167780d71e9abd1e631e7" title="Remove all items from the list.">clear</a>();                            
<a name="l00209"></a>00209    <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_collection.html#ab8f0528865494102febab56031988a9a" title="Return the number of items in the list (same as &#39;size()&#39;)">count</a>() <span class="keyword">const</span>;                      
<a name="l00210"></a>00210    <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_collection.html#a7977eb06f18f7055433365cbb2fbf5fa" title="Return the number of items in the list (same as &#39;count()&#39;)">size</a>() <span class="keyword">const</span>;                       
<a name="l00211"></a>00211    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a464ef9e5e095c647e34a851b167d421d" title="Return &#39;true&#39; if the list contains an occurrence of &#39;key&#39;, otherwise return &#39;false&#39; (same as &#39;exist()...">contains</a>(<span class="keyword">const</span> Key &amp; key) <span class="keyword">const</span>;    
<a name="l00212"></a>00212    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a276ed91a7453196b87d027f91ef7ff21" title="Return &#39;true&#39; if the list contains an occurrence of &#39;key&#39;, otherwise return &#39;false&#39; (same as &#39;contain...">exist</a>(<span class="keyword">const</span> Key &amp; key) <span class="keyword">const</span>;       
<a name="l00213"></a>00213    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#aa3b9e171a47ae4021ed93e780ca604ba" title="Return &#39;true&#39; if the list contains no items; otherwise return &#39;false&#39;.">empty</a>() <span class="keyword">const</span>;                      
<a name="l00214"></a>00214 
<a name="l00215"></a>00215    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a7269b27bc19a6874b8984ddd4f3cecd1" title="Add element &#39;value&#39; at the end of the list indexed by &#39;key&#39;.">push_back</a>(<span class="keyword">const</span> Key &amp; key, <span class="keyword">const</span> Value &amp; value);               
<a name="l00216"></a>00216    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#abea68733aa43643af5a2ac07bbd78aa2" title="Insert &#39;value&#39; at the beginning of the list indexed by &#39;key&#39;.">push_front</a>(<span class="keyword">const</span> Key &amp; key, <span class="keyword">const</span> Value &amp; value);              
<a name="l00217"></a>00217    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a0f4fa1d6008d5910103be9037f20665b" title="Add element &#39;value&#39; at the end of the list indexed by &#39;key&#39;.">insert</a>(<span class="keyword">const</span> Key &amp; key, <span class="keyword">const</span> Value &amp; value);                  
<a name="l00218"></a>00218    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a0f4fa1d6008d5910103be9037f20665b" title="Add element &#39;value&#39; at the end of the list indexed by &#39;key&#39;.">insert</a>(<span class="keywordtype">long</span> index, <span class="keyword">const</span> Key &amp; key, <span class="keyword">const</span> Value &amp; value);      
<a name="l00219"></a>00219    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a0f4fa1d6008d5910103be9037f20665b" title="Add element &#39;value&#39; at the end of the list indexed by &#39;key&#39;.">insert</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> &amp; other);                
<a name="l00220"></a>00220    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a0f4fa1d6008d5910103be9037f20665b" title="Add element &#39;value&#39; at the end of the list indexed by &#39;key&#39;.">insert</a>(<span class="keywordtype">long</span> index, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> &amp; other);    
<a name="l00221"></a>00221    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a645812dcc3e768f2f66413f77b0217c8" title="Replace the item at index position &#39;index&#39; with element &#39;value&#39; indexed by &#39;key&#39;.">replace</a>(<span class="keywordtype">long</span> index, <span class="keyword">const</span> Key &amp; key, <span class="keyword">const</span> Value &amp; value);     
<a name="l00222"></a>00222    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a8c51b338f22db4df3d3a0d4ad65332e8" title="Exchange the item at index position &#39;index1&#39; with the item at index position &#39;index2&#39;.">swap</a>(<span class="keywordtype">long</span> index1, <span class="keywordtype">long</span> index2);                                
<a name="l00223"></a>00223    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a26d085401a715214dee2b8737e0c68dc" title="Move the item at index position &#39;indexFrom&#39; to index position &#39;indexTo&#39;.">move</a>(<span class="keywordtype">long</span> indexFrom, <span class="keywordtype">long</span> indexTo);                            
<a name="l00224"></a>00224 
<a name="l00225"></a>00225    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a700ad0d24afec119dcad59a263136181" title="Remove the item indexed by &#39;key&#39; in the list.">removeByKey</a>(<span class="keyword">const</span> Key &amp; key);             
<a name="l00226"></a>00226    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#ad4d8541e983e15c660d7162bf502e9df" title="Remove the item at index position &#39;index&#39;.">removeByIndex</a>(<span class="keywordtype">long</span> index);                
<a name="l00227"></a>00227    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#ad4d8541e983e15c660d7162bf502e9df" title="Remove the item at index position &#39;index&#39;.">removeByIndex</a>(<span class="keywordtype">long</span> first, <span class="keywordtype">long</span> last);     
<a name="l00228"></a>00228    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a8a1e716b1c32b96e429e43127436ad94" title="Remove the first item in the list.">removeFirst</a>();                            
<a name="l00229"></a>00229    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a255472341136f55456f6a7507abdd21c" title="Remove the last item in the list.">removeLast</a>();                             
<a name="l00230"></a>00230 
<a name="l00231"></a>00231    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#ac29950bc2d7f35974f1eca6fd5a0ef2c">const_reference_value</a> <a class="code" href="classqx_1_1_qx_collection.html#a5b11fea19689fde42c070e2f97c43a73" title="Return the item associated with the &#39;key&#39;.">getByKey</a>(<span class="keyword">const</span> Key &amp; key) <span class="keyword">const</span>;     
<a name="l00232"></a>00232    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#ac29950bc2d7f35974f1eca6fd5a0ef2c">const_reference_value</a> <a class="code" href="classqx_1_1_qx_collection.html#ab20d863744dee2eac0752757e027e8be" title="Return the item at index position &#39;index&#39;.">getByIndex</a>(<span class="keywordtype">long</span> index) <span class="keyword">const</span>;        
<a name="l00233"></a>00233    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#ac29950bc2d7f35974f1eca6fd5a0ef2c">const_reference_value</a> <a class="code" href="classqx_1_1_qx_collection.html#a1007ff21d56f33e5692a16d9e115e8cd" title="Return the first element in the list.">getFirst</a>() <span class="keyword">const</span>;                    
<a name="l00234"></a>00234    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#ac29950bc2d7f35974f1eca6fd5a0ef2c">const_reference_value</a> <a class="code" href="classqx_1_1_qx_collection.html#ac29215e7c05ee9d905641514c5c5d05f" title="Return the last element in the list.">getLast</a>() <span class="keyword">const</span>;                     
<a name="l00235"></a>00235    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_collection.html#ae572d88061fa3737a49e93541ed25ed0">const_reference_key</a> <a class="code" href="classqx_1_1_qx_collection.html#a416faccd5e60a423a3d594eef2a3f99c" title="Return the key associated with the element at index position &#39;index&#39;.">getKeyByIndex</a>(<span class="keywordtype">long</span> index) <span class="keyword">const</span>;       
<a name="l00236"></a>00236 
<a name="l00237"></a>00237    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_collection.html#a4f2e29a010522b479821c230b57adaed" title="Sort all items in the list using associated keys to compare.">sortByKey</a>(<span class="keywordtype">bool</span> bAscending = <span class="keyword">true</span>);        
<a name="l00238"></a>00238    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_collection.html#a0a5b869d07917714f5ca14dc114fa8d9" title="Sort all items in the list.">sortByValue</a>(<span class="keywordtype">bool</span> bAscending = <span class="keyword">true</span>);      
<a name="l00239"></a>00239 
<a name="l00240"></a>00240    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Compare&gt;
<a name="l00241"></a><a class="code" href="classqx_1_1_qx_collection.html#a11aa16749d8cd7982519489948a4c1ae">00241</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_collection.html#a11aa16749d8cd7982519489948a4c1ae">sort</a>(Compare comp) { <a class="code" href="classqx_1_1_qx_collection.html#a2fd856518b2796359cd9b9135be9f32c" title="Collection with random access (like std::vector) and fast lookup by key (like boost::unordered_map)">m_qxCollection</a>.template get&lt;0&gt;().<a class="code" href="classqx_1_1_qx_collection.html#a11aa16749d8cd7982519489948a4c1ae">sort</a>(comp); }
<a name="l00242"></a>00242 
<a name="l00243"></a>00243 <span class="keyword">private</span>:
<a name="l00244"></a>00244 
<a name="l00245"></a>00245    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_collection.html#a5ee468d77f52316fcf3357080f86bd48">cloneCollection</a>(<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> * pClone, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> &amp; pRef);
<a name="l00246"></a>00246    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#adba1d541808cec21ac1dff0ac46da8fd">isSameCollection</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> * p1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;Key, Value&gt;</a> &amp; p2) <span class="keyword">const</span>;
<a name="l00247"></a>00247 
<a name="l00248"></a>00248    <span class="keyword">template</span> &lt;<span class="keywordtype">bool</span> bIsPointer <span class="comment">/* = false */</span>, <span class="keywordtype">int</span> dummy&gt;
<a name="l00249"></a><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html">00249</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html">compareKeyValue</a>
<a name="l00250"></a>00250    {
<a name="l00251"></a><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html#a723fc3f7204fa89dbe09fb88ff6d31fe">00251</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html#a723fc3f7204fa89dbe09fb88ff6d31fe">compareByKeyAscending</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v2)    { <span class="keywordflow">return</span> (v1.first &lt; v2.first); }
<a name="l00252"></a><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html#addaae1ac00f8c13aade974edf58c34a2">00252</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html#addaae1ac00f8c13aade974edf58c34a2">compareByKeyDescending</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v2)   { <span class="keywordflow">return</span> (v1.first &gt; v2.first); }
<a name="l00253"></a><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html#a5db03dc6b49354b008484efc41a68a8d">00253</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html#a5db03dc6b49354b008484efc41a68a8d">compareByValueAscending</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v2)  { <span class="keywordflow">return</span> (v1.second &lt; v2.second); }
<a name="l00254"></a><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html#a9b6fbb988e467266cf43f7acd3ffbbcc">00254</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html#a9b6fbb988e467266cf43f7acd3ffbbcc">compareByValueDescending</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v2) { <span class="keywordflow">return</span> (v1.second &gt; v2.second); }
<a name="l00255"></a>00255    };
<a name="l00256"></a>00256 
<a name="l00257"></a>00257    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00258"></a><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value_3_01true_00_01dummy_01_4.html">00258</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value.html">compareKeyValue</a>&lt;true, dummy&gt;
<a name="l00259"></a>00259    {
<a name="l00260"></a><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value_3_01true_00_01dummy_01_4.html#ac7f9c78ac681440439c7dd6ab9473edc">00260</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value_3_01true_00_01dummy_01_4.html#ac7f9c78ac681440439c7dd6ab9473edc">compareByKeyAscending</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v2)    { <span class="keywordflow">return</span> ((v1.first &amp;&amp; v2.first) ? ((* v1.first) &lt; (* v2.first)) : <span class="keyword">false</span>); }
<a name="l00261"></a><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value_3_01true_00_01dummy_01_4.html#a1da53f70f6b5628c74139aa17569b09f">00261</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value_3_01true_00_01dummy_01_4.html#a1da53f70f6b5628c74139aa17569b09f">compareByKeyDescending</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v2)   { <span class="keywordflow">return</span> ((v1.first &amp;&amp; v2.first) ? ((* v1.first) &gt; (* v2.first)) : <span class="keyword">true</span>); }
<a name="l00262"></a><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value_3_01true_00_01dummy_01_4.html#ac84f21e4a48aa5c38663f9821e4b09d6">00262</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value_3_01true_00_01dummy_01_4.html#ac84f21e4a48aa5c38663f9821e4b09d6">compareByValueAscending</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v2)  { <span class="keywordflow">return</span> ((v1.second &amp;&amp; v2.second) ? ((* v1.second) &lt; (* v2.second)) : <span class="keyword">false</span>); }
<a name="l00263"></a><a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value_3_01true_00_01dummy_01_4.html#a46d561d4492d2592c76596db3f0a1a63">00263</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structqx_1_1_qx_collection_1_1compare_key_value_3_01true_00_01dummy_01_4.html#a46d561d4492d2592c76596db3f0a1a63">compareByValueDescending</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_collection.html#a64ac02a079ab6d80cc3147dd4a60c357">type_pair_key_value</a> &amp; v2) { <span class="keywordflow">return</span> ((v1.second &amp;&amp; v2.second) ? ((* v1.second) &gt; (* v2.second)) : <span class="keyword">true</span>); }
<a name="l00264"></a>00264    };
<a name="l00265"></a>00265 
<a name="l00266"></a>00266 <span class="keyword">public</span>:
<a name="l00267"></a>00267 
<a name="l00268"></a><a class="code" href="classqx_1_1_qx_collection.html#adae3349e9cbc1c7978af455539777146">00268</a>    <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_collection.html#adae3349e9cbc1c7978af455539777146">_count</a>()<span class="keyword"> const               </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="classqx_1_1_qx_collection.html#ab8f0528865494102febab56031988a9a" title="Return the number of items in the list (same as &#39;size()&#39;)">count</a>(); }
<a name="l00269"></a><a class="code" href="classqx_1_1_qx_collection.html#a1cf2e485c5adfe897f2c0cb0e2bd2a27">00269</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_collection.html#a1cf2e485c5adfe897f2c0cb0e2bd2a27">_clear</a>()                     { this-&gt;<a class="code" href="classqx_1_1_qx_collection.html#ab258660dfa4167780d71e9abd1e631e7" title="Remove all items from the list.">clear</a>(); }
<a name="l00270"></a><a class="code" href="classqx_1_1_qx_collection.html#a84fbf341c3587f3f1899665505a05539">00270</a>    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_collection.html#a84fbf341c3587f3f1899665505a05539">_remove</a>(<span class="keywordtype">long</span> index)          { <span class="keywordflow">return</span> this-&gt;<a class="code" href="classqx_1_1_qx_collection.html#ad4d8541e983e15c660d7162bf502e9df" title="Remove the item at index position &#39;index&#39;.">removeByIndex</a>(index); }
<a name="l00271"></a><a class="code" href="classqx_1_1_qx_collection.html#ae65263a9dfb2ec4a7b961c7394180e21">00271</a>    <span class="keyword">virtual</span> boost::any <a class="code" href="classqx_1_1_qx_collection.html#ae65263a9dfb2ec4a7b961c7394180e21">_at</a>(<span class="keywordtype">long</span> index)<span class="keyword"> const  </span>{ Value val = this-&gt;<a class="code" href="classqx_1_1_qx_collection.html#ab20d863744dee2eac0752757e027e8be" title="Return the item at index position &#39;index&#39;.">getByIndex</a>(index); <span class="keywordflow">return</span> boost::any(val); }
<a name="l00272"></a>00272 
<a name="l00273"></a>00273 };
<a name="l00274"></a>00274 
<a name="l00275"></a>00275 } <span class="comment">// namespace qx</span>
<a name="l00276"></a>00276 
<a name="l00277"></a>00277 <span class="preprocessor">#include &quot;../../inl/QxCollection/QxCollection.inl&quot;</span>
<a name="l00278"></a>00278 
<a name="l00279"></a>00279 <a class="code" href="get__class__name_8h.html#a1c718fd48d5359ec283524d912fca4ee">QX_REGISTER_CLASS_NAME_TEMPLATE_2</a>(<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">qx::QxCollection</a>)
<a name="l00280"></a>00280 
<a name="l00281"></a>00281 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00282"></a>00282 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(pop)</span>
<a name="l00283"></a>00283 <span class="preprocessor"></span><span class="preprocessor">#endif // _MSC_VER</span>
<a name="l00284"></a>00284 <span class="preprocessor"></span>
<a name="l00285"></a>00285 <span class="preprocessor">#endif // _QX_COLLECTION_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_qx_collection_8h.html">QxCollection.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:03 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
